import Home from '../pages/home'
import ChinaNet from '../pages/chinanet'
import Error from '../pages/error'
import Success from '../pages/success'

const routes = [
  {
    path: '/',
    component: Home
  },
  {
    path: '/error',
    component: Error
  },
  {
    path: '/success/:code',
    component: Success
  },
  {
    path: '/chinanet/recommend/:orderNo',
    component: ChinaNet
  },
  {
    path: '/:all', // 其他路由跳转404页面
    component: Error
  }
]

export default routes
